package com.nowcoder.community.service;

import java.util.List;
import java.util.Map;

public interface IFollowService {


    void follow(int id, int entityType, int entityId);


    void unfollow(int id, int entityType, int entityId);

    public long findFolloweeCount(int userId, int entityType);

    public long findFollowerCount(int entityType, int entityId);

    public boolean hasFollowed(int userId,int entityType, int entityId);

    List<Map<String, Object>> findFollowees(int userId, int offset, int limit);

    List<Map<String, Object>> findFollowers(int userId, int offset, int limit);
}
